package com.itheima.service.Impl;

import com.itheima.domian.JDdomain;
import com.itheima.dao.JDdao;
import com.itheima.service.JDService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JDServiceImpl implements JDService {

    @Autowired
    private JDdao jDdao;

    @Override
    public List<JDdomain> findAll(String name) {
        return jDdao.findAll(name);
    }

    @Override
    public Integer insert(JDdomain jd) {
        return jDdao.insert(jd);
    }
}
